package com.SH.mapper;

import com.SH.pojo.Shopping;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingMapper {

    public List<Shopping> getAll();

    public List<Shopping> getByUid(Integer uid);

    public Integer addCar(Integer uid,Integer gid);

    public Boolean deleteGood(Integer id);

    public Shopping getById(Integer id);

    public Boolean buyGoods(Integer id);

    public List<Shopping> getBought(Integer uid);

    public List<Shopping> getByUIdAndGid(Integer uid,Integer gid);
}
